import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson,
  download
} from "../utils/request";

//分页查询商品活动列表
export function queryStoreCardInfo(data) {
  return post("/api/user-service/v1/StoreCard/queryStoreCardInfo", data);
  // return post('http://127.0.0.1:18080/api/user-service/v1/StoreCard/queryStoreCardInfo', data);
}

//分页查询商品活动列表
export function updateGoodsActivityStatus(data) {
  return post("/api/user-service/v1/StoreCard/alterStoreCardInfo", data);
  // return post('http://127.0.0.1:18080/api/user-service/v1/StoreCard/alterStoreCardInfo', data);
}

//查询中奖记录
export function queryWinningRecordList(data) {
  return post("/api/trade-service/v1/orderGift/queryOrderGiftDetail", data);
}

//批量发货 post
export function batchDeliverGoods(ids) {
  return post("/api/trade-service/v1/orderGift/updateBatch?ids=" + ids);
}

//查询中奖记录 Excel
export function queryWinningRecordListExcel(data) {
  return download("/api/trade-service/v1/orderGift/exportOrderGiftDetail", data);
}
